STEP 8: Let's create another variable! It will control the color of our stars.

The variable star_color is a string variable because it stores a letter, word, or sentence in quotes.

  • Go to and drag out String Variable. Drop it on the line right below star_points.
  • Change the variable name to star_color.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)